import request from '@/utils/request'

// 查询会话列表
export function listConver(query) {
  return request({
    url: '/entity/conver/list',
    method: 'get',
    params: query
  })
}

// 查询会话详细
export function getConver(id) {
  return request({
    url: '/entity/conver/' + id,
    method: 'get'
  })
}

// 新增会话
export function addConver(data) {
  return request({
    url: '/entity/conver',
    method: 'post',
    data: data
  })
}

// 修改会话
export function updateConver(data) {
  return request({
    url: '/entity/conver',
    method: 'put',
    data: data
  })
}

// 删除会话
export function delConver(id) {
  return request({
    url: '/entity/conver/' + id,
    method: 'delete'
  })
}

// 导出会话
export function exportConver(query) {
  return request({
    url: '/entity/conver/export',
    method: 'get',
    params: query
  })
}